/*
** xmalloc.c for xmalloc in /home/gueux_g/piscine/Jour_08
**
** Made by gregory gueux
** Login   <gueux_g@epitech.net>
**
** Started on  Wed Oct 10 19:09:07 2012 gregory gueux
** Last update Sat Jun 15 14:26:07 2013 julien genoud
*/

#include <stdlib.h>

void	*xmalloc(size_t n)
{
  void	*p;

  p = malloc(n);
  if (p == 0)
    {
      my_putstr("malloc fail\n");
      return (NULL);
    }
  return (p);
}
